

#colorManageWindow .modal-window__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 200px);
  overflow: hidden;
  transform: translateY(0);
}

.color-manage-window {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.color-manage-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.color-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.color-manage-search {
  flex: 2 1 320px;
}

.color-manage-quick-actions {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.color-manage-quick-actions .ghost-button {
  flex: 1 1 140px;
  min-width: 140px;
}

.color-manage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #dfe5f5;
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.9), #ffffff);
}

.color-manage-counter {
  font-size: 14px;
  color: #3c4048;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-manage-counter strong {
  font-size: 18px;
  color: #1a1d2c;
}

.color-manage-message {
  flex: 1;
  font-size: 13px;
  color: #5c6074;
}

.color-manage-message:empty {
  display: none;
}

.color-manage-message.info {
  color: #1f4c8f;
}

.color-manage-message.warning {
  color: #b58900;
}

.color-manage-message.error {
  color: #b9374d;
}

.color-manage-board {
  border: 1px solid #e0e6f2;
  border-radius: 16px;
  padding: 14px;
  background: rgba(247, 248, 253, 0.8);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.color-manage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
  min-height: 0;
}

.color-manage-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e0e4eb;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.color-manage-item:hover {
  border-color: #1a73e8;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.12);
  transform: translateY(-2px);
}

.color-manage-item.disabled {
  opacity: 0.5;
  border-style: dashed;
}

.color-manage-swatch {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.color-manage-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.32), transparent 60%);
  pointer-events: none;
}

.color-manage-swatch.swatch--pearlescent {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.color-manage-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.color-manage-code {
  font-weight: 600;
  font-size: 15px;
  color: #1c1f2d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-manage-color {
  font-size: 12px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-manage-checkbox {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid #cfd4da;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 18, 33, 0.08);
}

.color-manage-checkbox::after {
  content: '';
  width: 10px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.color-manage-checkbox.checked {
  border-color: #1a73e8;
  background: #1a73e8;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.26);
}

.color-manage-checkbox.checked::after {
  border-color: #ffffff;
  opacity: 1;
}

.color-manage-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 12px;
  color: #8b9097;
  font-size: 14px;
}

#panel-color-management .ghost-button {
  background: #f5f7fb;
  border-color: #d5d9e6;
  color: #1d2333;
}


.highlight-list-content .highlight-color-item {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 12px;
	padding: 12px 18px;
	font-size: 13px;
	color: #6b7280;
	border-bottom: 1px solid #eceff7;

}

.export-highlight-color-item {
	grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
}

#canvasHighlightWindow .highlight-window {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(0);
}

#canvasHighlightWindow .highlight-window__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

#canvasHighlightWindow .highlight-window__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#canvasHighlightWindow .modal-window__header {
  align-items: center;
}

#canvasHighlightWindow .modal-window__header button {
  margin-top: 0;
}

#colorManageWindow .modal-window__header {
  align-items: center;
}

#colorManageWindow .modal-window__header button {
  margin-top: 0;
}

#canvasHighlightWindow .highlight-window__search {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#canvasHighlightWindow .highlight-window__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e0e6f2;
  border-radius: 16px;
  padding: 16px;
  background: rgba(247, 248, 253, 0.8);
}

#canvasHighlightWindow .highlight-window__grid {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

#canvasHighlightWindow .highlight-list {
  flex: 1;
  min-width: 280px;
}

#canvasHighlightWindow .highlight-list {
  max-height: 420px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #dfe3ec;
  background: #ffffff;
}

#canvasHighlightWindow .highlight-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #eceff7;
}

#canvasHighlightWindow .highlight-list-content {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}

#canvasHighlightWindow .highlight-window__hint {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
}

.highlight-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(26, 115, 232, 0.24);
  background: rgba(26, 115, 232, 0.08);
  color: #1f4c8f;
}

.highlight-message.error {
  border-color: rgba(213, 83, 106, 0.32);
  background: rgba(213, 83, 106, 0.12);
  color: #b9374d;
}

.highlight-message:empty {
  display: none;
}

#canvasHighlightWindow .highlight-window__replacement-panel {
  display: none;
  flex: 0 0 300px;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid #dfe3ec;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  min-height: 0;
}

#canvasHighlightWindow .highlight-window__replacement-panel.is-visible {
  display: flex;
}

#canvasHighlightWindow .highlight-window__replacement-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

#canvasHighlightWindow .highlight-window__replacement-hint {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
}

#canvasHighlightWindow .highlight-window__replacement-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#canvasHighlightWindow .highlight-window__replacement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #5f6368;
}

#canvasHighlightWindow .highlight-window__replacement-list {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 2px 0;
}

.highlight-window__replacement-item {
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  padding: 10px;
  background: #f9fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  font-size: 12px;
  color: #1f2940;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.highlight-window__replacement-item:hover {
  border-color: #1a73e8;
}

.highlight-window__replacement-item.is-selected {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.highlight-window__replacement-swatch {
  width: 100%;
  min-height: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.15);
}

.highlight-window__replacement-code {
  font-weight: 600;
  font-size: 12px;
}

.highlight-window__replacement-description {
  font-size: 11px;
  color: #5f6368;
  word-break: break-all;
}

.highlight-window__replacement-list .highlight-window__replacement-empty {
  font-size: 13px;
  color: #5f6368;
  text-align: center;
  padding: 16px 0;
  width: 100%;
}

.highlight-window__replacement-actions {
  display: flex;
  justify-content: flex-end;
}
